package logic.weapons.projectileWeapons.missile;

import com.jme.math.Vector3f;
import com.jme.scene.Node;

import logic.ships.Ship;
import logic.weapons.WeaponType;
import logic.weapons.projectileWeapons.Projectile;
import logic.weapons.projectileWeapons.ProjectileWeapon;

public class MissileWeapon extends ProjectileWeapon {
	
	private static final long serialVersionUID = 1L;
	
	public MissileWeapon(Node model, String path, String title, MissileProperties properties, Ship ship) {
		super(model, path, title, properties, ship);
	}
	
	@Override
	protected Projectile createProjectile(Vector3f direction, Node projectileModel, Vector3f startLoc, boolean dummy) {
		return new Missile(ship, projectileModel, startLoc, direction, getMissileProperties(), this);
	}
	
	public MissileProperties getMissileProperties() { return (MissileProperties)properties; }
	
	@Override
	public WeaponType getWeaponType() { return WeaponType.Missile; }
}